#include "udpClient.hpp"
#include <memory>
using namespace std;
using namespace client;

int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        cerr<<"./udpClient server_ip server_port"<<endl;
        exit(1);
    }
    // ./udpClient ip port
    string serverip = argv[1];
    uint16_t serverport = atoi(argv[2]);

    unique_ptr<udpClient> ucli(new udpClient(serverip,serverport));
    ucli->init();
    ucli->run();

    return 0;
}